import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:trollee/app/components/custom_button.dart';
import 'package:trollee/app/modules/auth/auth/controller.dart';
import 'package:trollee/app/routes/app_pages.dart';

class AuthPage extends StatelessWidget {
  AuthPage({Key? key}) : super(key: key);

  final controller = Get.put(AuthController());
  final states = Get.find<AuthController>().states;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: CustomButton.small(
          text: '跳转到登录页面',
          onPressed: () {
            Get.toNamed(AppRoutes.authLogin);
          },
        ),
      ),
    );
  }
}
